package com.atom.common.delegate;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Title: DelegateLog
 * Description: 代理操作日志
 * @author WEWE
 * @date 2017年12月5日 上午11:41:07
 * @version 1.0
 */
@Entity
@Table(name="atm_common_delegate_log") 
public class DelegateLog implements Serializable {

  /** serialVersionUID*/
  private static final long serialVersionUID = 1L;

  /** 主键*/
  @Id
  @GeneratedValue(strategy = GenerationType.AUTO)    
  @Column(name="ID")
  private int id;
  
  /** 任务ID*/
  @Column(name="DEL_INFO_ID")
  private String delegateInfoId;
  
  /** 任务ID*/
  @Column(name="TASK_ID")
  private String taskId;

  /** 被代理人*/
  @Column(name="OWNER")
  private String owner;

  /** 代理人*/
  @Column(name="ASSIGNEE")
  private String assignee;

  /** 代理类型 1：外出代理 2：协同代理*/
  @Column(name="DG_TYPE")
  private int delegateType;
  
  /** 代理操作时间*/
  @Column(name="LOG_TIME")
  private Date logTime;  
  
  /** 是否回滚 0：否 1：是*/
  @Column(name="IS_ROLLBACK")
  private int isRollBack;
  
  /** 是否完成 0：否 1：是*/
  @Column(name="IS_COMPLETE")
  private int isComplete;

  public DelegateLog() {
    super();
  }

  public DelegateLog(String delegateInfoId, String taskId, String owner, String assignee, int delegateType) {
    super();
    this.delegateInfoId = delegateInfoId;
    this.taskId = taskId;
    this.owner = owner;
    this.assignee = assignee;
    this.logTime = new Date();
    this.isRollBack = 0;
    this.isComplete = 0;
    this.delegateType = delegateType;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getTaskId() {
    return taskId;
  }

  public void setTaskId(String taskId) {
    this.taskId = taskId;
  }

  public String getOwner() {
    return owner;
  }

  public void setOwner(String owner) {
    this.owner = owner;
  }

  public String getAssignee() {
    return assignee;
  }

  public void setAssignee(String assignee) {
    this.assignee = assignee;
  }

  public int getDelegateType() {
    return delegateType;
  }

  public void setDelegateType(int delegateType) {
    this.delegateType = delegateType;
  }

  public Date getLogTime() {
    return logTime;
  }

  public void setLogTime(Date logTime) {
    this.logTime = logTime;
  }

  public String getDelegateInfoId() {
    return delegateInfoId;
  }

  public void setDelegateInfoId(String delegateInfoId) {
    this.delegateInfoId = delegateInfoId;
  }

  public int getIsRollBack() {
    return isRollBack;
  }

  public void setIsRollBack(int isRollBack) {
    this.isRollBack = isRollBack;
  }

  public int getIsComplete() {
    return isComplete;
  }

  public void setIsComplete(int isComplete) {
    this.isComplete = isComplete;
  }
  
  
  
  

}
